import { CodeOnlyResult } from "./CodeOnlyResult";
import { UserInfo } from "./UserInfo";

export class UserInfoResult extends CodeOnlyResult{
	private userInfo: UserInfo|null = null;

	constructor(respData: any){
		super(respData);
	}

	public init(respData: any){
		super.init(respData);
		this.userInfo = new UserInfo(respData.data);
		this.userInfo.init(respData.data);
	}

	public getUserInfo(): UserInfo|null{
		return this.userInfo;
	}

}